package com.example.child_protection.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 接口名称枚举
 * @author Biz
 * @date 2018-10-31
 */
public enum ServiceActionEnums {

    SYSTEM_ROLE_MENU_INSERT("SYSTEM_ROLE_MENU_INSERT", "角色菜单添加"),

    SYSTEM_ROLE_MENU_BUTTON_INSERT("SYSTEM_ROLE_MENU_BUTTON_INSERT", "角色菜单和按钮添加"),

    SYSTEM_ROLE_MENU_UPDATE("SYSTEM_ROLE_MENU_UPDATE", "角色菜单修改"),

    SYSTEM_ROLE_MENU_DELETE("SYSTEM_ROLE_MENU_DELETE", "角色菜单删除"),

    SYSTEM_ROLE_MENU_FIND_ID("SYSTEM_ROLE_MENU_FIND_ID", "角色菜单ID查询"),

    SYSTEM_ROLE_MENU_FIND_LIST("SYSTEM_ROLE_MENU_FIND_LIST", "角色菜单查询（修改权限功能时使用）"),

    SYSTEM_ROLE_INSERT("SYSTEM_ROLE_INSERT", "角色添加"),

    SYSTEM_ROLE_UPDATE("SYSTEM_ROLE_UPDATE", "角色修改"),

    SYSTEM_ROLE_DELETE("SYSTEM_ROLE_DELETE", "角色删除"),

    SYSTEM_ROLE_FIND_ID("SYSTEM_ROLE_FIND_ID", "角色ID查询"),

    SYSTEM_ROLE_FIND_LIST("SYSTEM_ROLE_FIND_LIST", "角色列表查询"),

    SYSTEM_MENU_INSERT("SYSTEM_MENU_INSERT", "菜单添加"),

    SYSTEM_MENU_UPDATE("SYSTEM_MENU_UPDATE", "菜单修改"),

    SYSTEM_MENU_DELETE("SYSTEM_MENU_DELETE", "菜单删除"),

    SYSTEM_MENU_FIND_ID("SYSTEM_MENU_FIND_ID", "菜单ID查询"),

    SYSTEM_MENU_FIND_LIST("SYSTEM_MENU_FIND_LIST", "菜单列表查询"),

    SYSTEM_MENU_FIND_ROLE_MENU_LIST("SYSTEM_MENU_FIND_ROLE_MENU_LIST", "角色菜单列表查询（登录时使用）"),

    DEPARTMENT_INSERT("DEPARTMENT_INSERT", "科室添加"),

    DEPARTMENT_UPDATE("DEPARTMENT_UPDATE", "科室修改"),

    DEPARTMENT_DELETE("DEPARTMENT_DELETE", "科室删除"),

    DEPARTMENT_FIND_ID("DEPARTMENT_FIND_ID", "科室ID查询"),

    DEPARTMENT_FIND_LIST("DEPARTMENT_FIND_LIST", "科室列表查询"),

    HISPITAL_INSERT("HISPITAL_INSERT", "医院添加"),

    HISPITAL_UPDATE("HISPITAL_UPDATE", "医院修改"),

    HISPITAL_DELETE("HISPITAL_DELETE", "医院删除"),

    HISPITAL_FIND_ID("HISPITAL_FIND_ID", "医院ID查询"),

    HISPITAL_FIND_LIST("HISPITAL_FIND_LIST", "医院列表查询"),

    REGION_INSERT("REGION_INSERT", "区域添加"),

    REGION_UPDATE("REGION_UPDATE", "区域修改"),

    REGION_DELETE("REGION_DELETE", "区域删除"),

    REGION_FIND_ID("REGION_FIND_ID", "区域ID查询"),

    REGION_FIND_LIST("REGION_FIND_LIST", "区域列表查询"),

    USER_INSERT("USER_INSERT", "用户添加"),

    USER_UPDATE("USER_UPDATE", "用户修改"),

    USER_DELETE("USER_DELETE", "用户删除"),

    USER_PWD_UPDATE("USER_PWD_UPDATE", "用户修改密码"),

    USER_FIND_ID("USER_FIND_ID", "用户ID查询"),

    USER_FIND_PAGE("USER_FIND_PAGE", "用户列表查询"),

    USER_FIND_CHECK_USER_NAME("USER_FIND_CHECK_USER_NAME", "用户登录名检查"),

    LOGIN("LOGIN", "用户登录"),

    SYSTEM_VACCINE_INSERT("SYSTEM_VACCINE_INSERT", "疫苗添加"),

    SYSTEM_VACCINE_UPDATE("SYSTEM_VACCINE_UPDATE", "疫苗修改"),

    SYSTEM_VACCINE_DELETE("SYSTEM_VACCINE_DELETE", "疫苗删除"),

    SYSTEM_VACCINE_FIND_ID("SYSTEM_VACCINE_FIND_ID", "疫苗ID查询"),

    SYSTEM_VACCINE_FIND_LIST("SYSTEM_VACCINE_FIND_LIST", "疫苗列表查询"),

    SYSTEM_ROLE_BUTTON_INSERT("SYSTEM_ROLE_BUTTON_INSERT", "角色按钮添加"),

    SYSTEM_ROLE_BUTTON_UPDATE("SYSTEM_ROLE_BUTTON_UPDATE", "角色按钮修改"),

    SYSTEM_ROLE_BUTTON_DELETE("SYSTEM_ROLE_BUTTON_DELETE", "角色按钮删除"),

    SYSTEM_ROLE_BUTTON_FIND_ID("SYSTEM_ROLE_BUTTON_FIND_ID", "角色按钮ID查询"),

    SYSTEM_ROLE_BUTTON_FIND_LIST("SYSTEM_ROLE_BUTTON_FIND_LIST", "角色按钮列表查询"),

    SYSTEM_MENU_BUTTON_INSERT("SYSTEM_MENU_BUTTON_INSERT", "菜单按钮添加"),

    SYSTEM_MENU_BUTTON_UPDATE("SYSTEM_MENU_BUTTON_UPDATE", "菜单按钮修改"),

    SYSTEM_MENU_BUTTON_DELETE("SYSTEM_MENU_BUTTON_DELETE", "菜单按钮删除"),

    SYSTEM_MENU_BUTTON_FIND_ID("SYSTEM_MENU_BUTTON_FIND_ID", "菜单按钮ID查询"),

    SYSTEM_MENU_BUTTON_FIND_LIST("SYSTEM_MENU_BUTTON_FIND_LIST", "菜单按钮列表查询"),

    SYSTEM_MENU_BUTTON_CHECK_CODE("SYSTEM_MENU_BUTTON_CHECK_CODE", "检测菜单按钮CODE是否重复"),

    ATTR_INSERT("ATTR_INSERT", "属性添加"),

    ATTR_UPDATE("ATTR_UPDATE", "属性修改"),

    ATTR_DELETE("ATTR_DELETE", "属性删除"),

    ATTR_FIND_ID("ATTR_FIND_ID", "属性ID查询"),

    ATTR_FIND_LIST("ATTR_FIND_LIST", "属性列表查询"),

    ATTR_FIND_LIST_BY_CATEGORY_ID("ATTR_FIND_LIST_BY_CATEGORY_ID", "根据类目Id查询属性列表"),

    ATTR_CHECK_CODE("ATTR_CHECK_CODE", "检测属性CODE是否重复"),

    ATTR_VALUE_INSERT("ATTR_VALUE_INSERT", "属性候选值添加"),

    ATTR_VALUE_UPDATE("ATTR_VALUE_UPDATE", "属性候选值修改"),

    ATTR_VALUE_DELETE("ATTR_VALUE_DELETE", "属性候选值删除"),

    ATTR_VALUE_FIND_ID("ATTR_VALUE_FIND_ID", "属性候选值ID查询"),

    ATTR_VALUE_FIND_LIST("ATTR_VALUE_FIND_LIST", "属性候选值列表查询"),

    ATTR_VALUE_CHECK_CODE("ATTR_VALUE_CHECK_CODE", "检测属性候选值CODE是否重复"),

    CATEGORY_INSERT("CATEGORY_INSERT", "类目添加"),

    CATEGORY_UPDATE("CATEGORY_UPDATE", "类目修改"),

    CATEGORY_DELETE("CATEGORY_DELETE", "类目删除"),

    CATEGORY_FIND_ID("CATEGORY_FIND_ID", "类目ID查询"),

    CATEGORY_FIND_LIST("CATEGORY_FIND_LIST", "类目列表查询"),

    SYSTEM_FEEDING_PROGRAM_INSERT("SYSTEM_FEEDING_PROGRAM_INSERT", "喂养方案添加"),

    SYSTEM_FEEDING_PROGRAM_UPDATE("SYSTEM_FEEDING_PROGRAM_UPDATE", "喂养方案修改"),

    SYSTEM_FEEDING_PROGRAM_UPDATE_CONTENT("SYSTEM_FEEDING_PROGRAM_UPDATE_CONTENT", "喂养方案内容修改"),

    SYSTEM_FEEDING_PROGRAM_DELETE("SYSTEM_FEEDING_PROGRAM_DELETE", "喂养方案删除"),

    SYSTEM_FEEDING_PROGRAM_FIND_ID("SYSTEM_FEEDING_PROGRAM_FIND_ID", "喂养方案ID查询"),

    SYSTEM_FEEDING_PROGRAM_FIND_LIST("SYSTEM_FEEDING_PROGRAM_FIND_LIST", "喂养方案列表查询"),

    CATEGORY_ATTR_INSERT("CATEGORY_ATTR_INSERT", "类目属性添加"),

    CATEGORY_ATTR_UPDATE("CATEGORY_ATTR_UPDATE", "类目属性修改"),

    CATEGORY_ATTR_DELETE("CATEGORY_ATTR_DELETE", "类目属性删除"),

    CATEGORY_ATTR_FIND_ID("CATEGORY_ATTR_FIND_ID", "类目属性ID查询"),

    CATEGORY_ATTR_FIND_LIST("CATEGORY_ATTR_FIND_LIST", "类目属性列表查询"),

    SYSTEM_SHORTCOMING_INSERT("SYSTEM_SHORTCOMING_INSERT", "缺点添加"),

    SYSTEM_SHORTCOMING_UPDATE("SYSTEM_SHORTCOMING_UPDATE", "缺点修改"),

    SYSTEM_SHORTCOMING_UPDATE_CONTENT("SYSTEM_DISEASE_UPDATE_CONTENT", "缺点内容修改"),

    SYSTEM_SHORTCOMING_DELETE("SYSTEM_SHORTCOMING_DELETE", "缺点删除"),

    SYSTEM_SHORTCOMING_FIND_ID("SYSTEM_SHORTCOMING_FIND_ID", "缺点ID查询"),

    SYSTEM_SHORTCOMING_FIND_LIST("SYSTEM_SHORTCOMING_FIND_LIST", "缺点列表查询"),

    SYSTEM_DISEASE_INSERT("SYSTEM_DISEASE_INSERT", "疾病添加"),

    SYSTEM_DISEASE_UPDATE("SYSTEM_DISEASE_UPDATE", "疾病修改"),

    SYSTEM_DISEASE_UPDATE_CONTENT("SYSTEM_DISEASE_UPDATE_CONTENT", "疾病内容修改"),

    SYSTEM_DISEASE_DELETE("SYSTEM_DISEASE_DELETE", "疾病删除"),

    SYSTEM_DISEASE_FIND_ID("SYSTEM_DISEASE_FIND_ID", "疾病ID查询"),

    SYSTEM_DISEASE_FIND_LIST("SYSTEM_DISEASE_FIND_LIST", "疾病列表查询"),

    ASSESS_INSERT("ASSESS_INSERT", "高危信息添加"),

    ASSESS_UPDATE("ASSESS_UPDATE", "高危信息修改"),

    ASSESS_DELETE("ASSESS_DELETE", "高危信息删除"),

    ASSESS_FIND_ID("ASSESS_FIND_ID", "高危信息ID查询"),

    ASSESS_FIND_LIST("ASSESS_FIND_LIST", "高危信息列表查询"),

    CHILD_ASSESS_INSERT("CHILD_ASSESS_INSERT", "儿童高危信息添加"),

    CHILD_ASSESS_UPDATE("CHILD_ASSESS_UPDATE", "儿童高危信息修改"),

    CHILD_ASSESS_DELETE("CHILD_ASSESS_DELETE", "儿童高危信息删除"),

    CHILD_ASSESS_FIND_ID("CHILD_ASSESS_FIND_ID", "儿童高危信息ID查询"),

    CHILD_ASSESS_FIND_LIST("CHILD_ASSESS_FIND_LIST", "儿童高危信息列表查询"),

    CHILD_ARCHIVES_INSERT("CHILD_ARCHIVES_INSERT", "档案数据添加"),

    CHILD_VALUE_INSERT("CHILD_VALUE_INSERT", "档案数据儿童信息保存"),

    CHILD_PARENT_VALUES_INSERT("CHILD_PARENT_VALUES_INSERT", "档案数据儿童父母信息保存"),

    CHILD_TURN_INFO_INSERT("CHILD_TURN_INFO_INSERT", "档案数据儿童转出与结案信息保存"),

    CHILD_ARCHIVES_UPDATE("CHILD_ARCHIVES_UPDATE", "档案数据修改"),

    CHILD_ARCHIVES_DELETE("CHILD_ARCHIVES_DELETE", "档案数据删除"),

    CHILD_ARCHIVES_FIND_ID("CHILD_ARCHIVES_FIND_ID", "档案数据ID查询"),

    CHILD_ARCHIVES_FIND_LIST("CHILD_ARCHIVES_FIND_LIST", "档案数据列表查询"),

    CARD_CREATE_BATCH("CARD_CREATE_BATCH", "儿保卡号批量添加"),

    CARD_DELETE("CARD_DELETE", "儿保卡号删除"),

    CARD_FIND("CARD_FIND", "获取一个未使用的儿保卡信息"),

    CARD_FIND_LIST("CARD_FIND_LIST", "儿保卡号列表查询"),

    ;

    private final String value;

    private final String displayName;

    private static Map<String, ServiceActionEnums> valueMap;

    private ServiceActionEnums(String value, String displayName) {
        this.value = value;
        this.displayName = displayName;
    }

    public ServiceActionEnums getEnum(String value) {
        return (ServiceActionEnums) valueMap.get(value);
    }

    public Map<String, ServiceActionEnums> getAllValueMap() {
        return valueMap;
    }

    public String getValue() {
        return this.value;
    }

    public String getDisplayName() {
        return this.displayName;
    }

    static {

        valueMap = new HashMap<String, ServiceActionEnums>();

        for (ServiceActionEnums e : values())
            valueMap.put(e.value, e);
    }
}
